TKsquare

      XFCN
      No. 4430
      Version:  5.0 (public domain)
      Copyright © 1990 - 1994 by Stan Gilbert
_____________________________________________________

TKsquare allows tracking the mouse with visual feedback, most specifically, it allows you to draw a rectangle on the screen using a dotted selection rectangle.  When you release the mouse the coordinates of the rectangle are returned.

                         ∂
Examples

ÓÊput TKsquare("frame")
ÊÊ›put TKsquare("horiz")
ÊÊ›put TKsquare("vert")

Parameters

Parameter 1

frame:  Returns the coordinates of the rectangle selected.
Holding the command Key results in a rectangle adjusted to 0,0 topleft coordinates.

vert:  Show only a vertical line the full height of the current window and track the mouse until the mouse button is clicked.

horiz:  Show only a horizontal line the full height of the current window and track the mouse until the mouse button is clicked.

Return Values

ÓÊThe final rect - left,top,right,bottom.  In the case of Vert only the right is significant and in the case of Horiz the bottom is significant.

°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°